import request from '@/utils/request'

// 查询采集项列表
export function listCollection_item(query) {
  return request({
    url: '/business/collection_item/list',
    method: 'get',
    params: query
  })
}

// 查询采集项详细
export function getCollection_item(collectionItemId) {
  return request({
    url: '/business/collection_item/' + collectionItemId,
    method: 'get'
  })
}

// 新增采集项
export function addCollection_item(data) {
  return request({
    url: '/business/collection_item',
    method: 'post',
    data: data
  })
}

// 修改采集项
export function updateCollection_item(data) {
  return request({
    url: '/business/collection_item',
    method: 'put',
    data: data
  })
}

// 删除采集项
export function delCollection_item(collectionItemId) {
  return request({
    url: '/business/collection_item/' + collectionItemId,
    method: 'delete'
  })
}

// 导出采集项
export function exportCollection_item(query) {
  return request({
    url: '/business/collection_item/export',
    method: 'get',
    params: query
  })
}